<table class="list">
    <tbody>
        <tr>
            <th width="15%">API名称</th>
            <th width="20%">URL</th>
            <th width="5%">请求方式</th>
            <th width="5%">详情</th>
            <th width="3%">排序</th>
            <th width="8%">操作</th>
        </tr>
        <#list apiPage.getList() as x>
        <tr>
            <td style="text-align:left;">${(x.api_name)!}</td>
            <td style="text-align:left;">${(x.api_url)!}</td>
            <td style="text-align:left;">${(x.api_request_type)!}</td>
            <td style="text-align:left;"><a href="${BASE_PATH!}/api/detail/${x.id}">详情</a></td>
            <td style="text-align:left;">${(x.api_index)!}</td>
            <td style="text-align:left;">
                &nbsp;&nbsp;<a href="javascript:void" onclick="confirm('您确定要删除《${(x.api_name)}》吗?') && (window.location.href='${BASE_PATH!}/api/delete/${x.id}');">删除</a>
                &nbsp;&nbsp;<a href="${BASE_PATH!}/api/edit/${x.id}">修改</a>
            </td>
        </tr>
        </#list>
    </tbody>
</table>
<#include "/common/_paginate.html" />
<@paginate currentPage=apiPage.pageNumber totalPage=apiPage.totalPage actionUrl="${BASE_PATH!}/api/page/" urlParas="${(urlParas)!}"/>